import request from '@/util/request'

export default {
    findALLSTU() {
        return request({
            url: '/student/list',
            method: 'get',
        })
    },

    findbypage(page,pageSize){
        return request({
            url:`/student/findbypage/${page}/${pageSize}`,
            method:"get"
        })
    },

    searchSTU(page,pageSize,data){
        return request({
            url:`/student/searchstu/${page}/${pageSize}`,
            method:"post",
            data
        })
    },

    search(page,pageSize,data){
        return request({
            url:`/student/searchstu/${page}/${pageSize}`,
            method:"post",
            data
        })
    },

    addSTU(data){
        return request({
            url: '/student/add',
            method: 'post',
            data
        })
    },

    updateSTU(data){
        return request({
            url: '/student/update',
            method: 'put',
            data
        })
    },

    deletes(dsid){
        return request({
            url: `/student/delete/${dsid}`,
            method: 'delete',
        })
    }
}